<div id="nav"><h2><img src="<?php echo base_url();?>asset/images/list.png" />  Lista De Contenedores en DB</h2><br />
<table border="0" cellspacing="0" cellpadding="0" width="99%" id="resultTable">
  <thead>
<tr>
<th>id</th>
<th>port</th>
<th>date</th>
<th>conveyance</th>
<th>Container Serial</th>
<th>bar #</th>
<th>Seal 1</th>
<th>Seal 2</th>
<th>Vessel Name</th>
<th>Dac REF</th>
<th>Booking</th>
<th>Port of unloading</th>
<th>Sum Insured</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(isset($main)) : foreach($main as $row) : ?>
 <?php 
 echo "<tr>";
 echo "<td>".$row->id."</td>";
 	echo "<td>".$this->product_model->get_ports($row->port)."</td>"; 
   echo "<td>".$row->date."</td>";
    echo "<td>".$row->conveyance."</td>";
    echo "<td>".$row->container_serial."</td>";
    echo "<td>".$row->bar1."</td>";
    echo "<td>".$row->seal1."</td>";
    echo "<td>".$row->seal2."</td>";
    echo "<td>".$row->vessel_name."</td>";
    echo "<td>".$row->ref."</td>";
    echo "<td>".$row->booking."</td>";
    echo "<td>".$this->product_model->get_ports($row->port_unload)."</td>";
    echo "<td>".$row->sum_insured."</td>";
    echo "<td>";
    echo anchor("start/del_cont/$row->id", "Delete");
    echo " | ". anchor("start/edit_cont/$row->id", "Edit");
    echo "</td>"; 
 echo "</tr>"; 
 ?>
 <?php endforeach; ?>
 <?php else : ?>	
	<tr>No records were returned.</tr>
	<?php endif; ?>
  </tbody>
</table>
</div>

